// 导入二次封装axios
import koi from "@/utils/axios.ts";


// 统一管理接口
enum API {
  BEHAVIOR_CAPTCHA_GEN = "/auth/behavior/captcha/gen",  
  BEHAVIOR_CAPTCHA_CHECK = "/auth/behavior/captcha/check",
}

// 行为验证码获取
export const behaviorCaptchaGen = (params: any) => {
  return koi.post(API.BEHAVIOR_CAPTCHA_GEN, params);
};

// 行为验证码校验
export const behaviorCaptchaCheck = (params: any) => {
  return koi.post(API.BEHAVIOR_CAPTCHA_CHECK, params);
};